package com.example.smart.ui.activity.chat

import com.example.lib.extend.setOnDoubleClickListener
import com.example.lib.utils.statusbar.StatusBarUtils
import com.example.smart.R
import com.example.smart.base.ui.activity.BaseActivity
import com.example.smart.databinding.ActivityChatListBinding
import com.example.smart.utils.DisplayUtils

class ChatListActivity : BaseActivity<ActivityChatListBinding>() {
    override fun layoutID() = R.layout.activity_chat_list

    override fun initView() {
        StatusBarUtils.setStateAndNavigationBar(this@ChatListActivity,
            statusBarColor = com.example.lib.R.color.translate)
    }

    override fun initListener() {
        binding.Lin1.setOnDoubleClickListener {
            DisplayUtils.toChat(this@ChatListActivity, 1)
        }
        binding.Lin2.setOnDoubleClickListener {
            DisplayUtils.toChat(this@ChatListActivity, 2)
        }
        binding.Lin3.setOnDoubleClickListener {
            DisplayUtils.toChat(this@ChatListActivity, 3)
        }
        binding.Lin4.setOnDoubleClickListener {
            DisplayUtils.toChat(this@ChatListActivity, 4)
        }
        binding.Lin5.setOnDoubleClickListener {
            DisplayUtils.toChat(this@ChatListActivity, 5)
        }
    }
}